clear all
clc
clf

set(gcf,'Position',[100 100 460 400]);
set(gca,'Position',[.16 .12 .80 .74]);
figure_FontSize=8;
set(get(gca,'XLabel'),'FontSize',figure_FontSize,'Vertical','top');
set(get(gca,'YLabel'),'FontSize',figure_FontSize,'Vertical','middle');
set(findobj('FontSize',10),'FontSize',figure_FontSize);
set(findobj(get(gca,'Children'),'LineWidth',0.5),'LineWidth',2);
y_all=[1411.7988438397942, 2088.3593832860906, 2708.345287380498, 4526.480144464054, 5324.405714789593, 5341.688748437146, 5303.3743954955, 5102.041908920025;
    1929.194502970219, 3519.9875764074886, 3738.1221484164266, 5045.9143585605025, 5390.725104059308, 5386.602870154638, 5344.549495422485, 5105.374870367038;
    1413.150873889, 4199.658227292846, 4780.288025754299, 5300.658869544334, 5364.4892800528705, 5359.462936016751, 5296.926947167986, 5101.965450349333;
 %   1413.1508738889995, 3495.7055599916844, 5080.798890171668, 5123.082960154448, 5114.971523520229, 5054.118503758509, 4581.544894998058, 2621.7968736594576;
    1413.1508738889995, 1995.066208362102, 2079.667830920266, 4044.089301043868, 5115.053313073502, 5052.7536668140265, 4580.180058053576, 2621.7968736594576];
b = bar(y_all','FaceColor','flat');
b(1).FaceColor = [0 0.4470 0.7410];
b(2).FaceColor = [0.8500 0.3250 0.0980];
b(3).FaceColor = [0.9290 0.6940 0.1250];
b(4).FaceColor = [0.4660 0.6740 0.1880];
%b(5).FaceColor = [0.6350 0.0780 0.1840];

axis([0,9,0,7000]);

set(gca, 'XTickLabel', {'1', '3', '5', '9', '15', '30', '50', '100'})
xlabel('# of Workers')
ylabel('System Cost')
legend('NLF','MPLF','PCS','MUTA')